<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <input type="hidden" name="row[building_status]" value="1"/>

    <div class="form-group">
        <label for="c-organization_id" class="control-label col-xs-12 col-sm-2">{:__('Organization_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-organization_id" data-rule="required" data-source="organization/index" class="form-control selectpage" name="row[organization_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-building_name" class="control-label col-xs-12 col-sm-2">{:__('Building_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-building_name" data-rule="required" class="form-control" name="row[building_name]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-building_alias" class="control-label col-xs-12 col-sm-2">{:__('Building_alias')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-building_alias" class="form-control" name="row[building_alias]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-building_customer_type" class="control-label col-xs-12 col-sm-2">{:__('Building_customer_type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-building_customer_type" data-rule="required" class="form-control selectpicker" name="row[building_customer_type]">
                {foreach name="buildingCustomerTypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label for="c-building_customer_name" class="control-label col-xs-12 col-sm-2">{:__('Building_customer_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-building_customer_name" data-rule="required" class="form-control" name="row[building_customer_name]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-building_project_name" class="control-label col-xs-12 col-sm-2">{:__('Building_project_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-building_project_name" data-rule="required" class="form-control" name="row[building_project_name]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-building_project_address" class="control-label col-xs-12 col-sm-2">{:__('Building_project_address')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-building_project_address" data-rule="required" class="form-control" name="row[building_project_address]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-building_begin_time" class="control-label col-xs-12 col-sm-2">{:__('Building_begin_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-building_begin_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[building_begin_time]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-building_end_time" class="control-label col-xs-12 col-sm-2">{:__('Building_end_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-building_end_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[building_end_time]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-building_amount" class="control-label col-xs-12 col-sm-2">{:__('Building_amount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-building_amount" data-rule="required" class="form-control" step="0.01" name="row[building_amount]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label for="c-building_contract_number" class="control-label col-xs-12 col-sm-2">{:__('Building_contract_number')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-building_contract_number" data-rule="required" class="form-control" name="row[building_contract_number]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-building_amount_paid" class="control-label col-xs-12 col-sm-2">{:__('Building_amount_paid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-building_amount_paid" data-rule="required" class="form-control" step="0.01" name="row[building_amount_paid]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label for="c-building_amount_paid_rate" class="control-label col-xs-12 col-sm-2">{:__('Building_amount_paid_rate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-building_amount_paid_rate" data-rule="required" class="form-control" name="row[building_amount_paid_rate]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-building_operator_user_id" class="control-label col-xs-12 col-sm-2">{:__('Building_operator_user_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-building_operator_user_id" data-rule="required" data-source="auth/admin/index" data-field="nickname" class="form-control selectpage" name="row[building_operator_user_id]" type="text" value="">
            <input type="hidden" id="c-building_operator_user_id_text_value" name="row[building_operator_user_name]"/>
        </div>
    </div>
    <div class="form-group">
        <label for="c-building_info" class="control-label col-xs-12 col-sm-2">{:__('Building_info')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-building_info" data-rule="required" class="form-control" name="row[building_info]" type="text" value="">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
